javac *.java
c=0
echo 'Start' > 'result.txt'
for (( i = 1 ; i <= 100 ; i++ ))
do 
	str=`java Client dd2380.csc.kth.se 5032 $i`
	echo $i' '$str >> 'result.txt'
	if [ "$str" = "CORRECT SOLUTION" ]
	then
		c=$(($c+1))
	fi
done

echo $c

rm *.class

